{include file="header.tpl"}

<div id="main">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>

{include file="mydesk.userpanel.tpl"}

<div id="md_rightbox">
<h2>{if $image.imageid}{$lan_edit}{else}{$lan_publish}{/if}{$lan_image}</h2>
{''|GetSystemInfo}

<div id="md_rightbox_main">

{$Editor}

<form enctype="multipart/form-data" method="post" action="{'mydesk.upload.php'|GetUrl}">
<input type="hidden" name="action" value="{if $image.imageid}updateimage{else}insertimage{/if}" />
<input type="hidden" name="imageid" value="{$image.imageid}" />
<input type="hidden" name="path" value="{$image.path}" />
<input type="hidden" name="actived" value="{$image.actived}" />
<input type="hidden" name="filename" value="{$image.filename}" />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="110">{if $image.imageid}{$lan_browse}{$lan_image}{else}{$lan_upload}{$lan_image}{/if}:&nbsp;</td>
<td>
{if $image.imageid}
{if $image.actived}<a href="{'InterPhoto.php'|GetUrl:'id':$image.imageid}" target="_blank">{/if}<img src="InterPhoto.thumbnail.php?file={$image.path|cat:"/1/"|cat:$image.filename|InterEncode}"  onMouseMove="ShowBigImage();" class="thumbnail" />{if $image.actived}</a>{/if}<BR><BR>
{else}
<input name="imagefile" type="file" size="40" /> <span class="red">* {$lan_must}</span><BR><span class="lightgrey">{$lan_onlyjpgfile}</span><BR><BR>
{/if}
</td>
</tr>
<tr>
<td>{$lan_belongto}{$lan_category}:&nbsp;</td>
<td>{$categoryselect} <span class="red">* {$lan_must}</span></td>
</tr>
<tr>
<td>{$lan_image}{$lan_title}:&nbsp;</td>
<td><input type="text" name="title" size="40" value="{$image.title}" /> <span class="red">* {$lan_must}</span></td>
</tr>
<tr>
<td>{$lan_image}{$lan_description}:&nbsp;</td>
<td><div style="background-color:#FFF;color:#000;width:570px;"><textarea name="description" style="height:160px;width:570px;" id="description658">{$image.description}</textarea></div><BR></td>
</tr>
<tr>
<td>{$lan_meta}:&nbsp;</td>
<td><input type="text" name="keywords" size="40" value="{$image.keywords}" /></td>
</tr>
<tr>
<td>{$lan_image}{$lan_linkurl}:&nbsp;</td>
<td><input type="text" name="url" size="40" value="{$image.url}" /></td>
</tr>
<tr>
<td>{$lan_forsale}:&nbsp;</td>
<td><input type="checkbox" name="sale" value="1"  {if $image.sale}CHECKED{/if} />&nbsp;<b>{$lan_yes}:</b>&nbsp;&nbsp;<span class="lightgrey">{$lan_forsalenote}</span></td>
</tr>
<tr>
<td>{$lan_image}{$lan_price}:&nbsp;</td>
<td><input type="text" name="price" size="20" value="{$image.price}" /></td>
</tr>


<tr>
<td>&nbsp;</td>
<td><BR>
<input type="submit" value=" &nbsp;{$lan_submit}&nbsp; " />
</td>
</tr>
</table>
</form>



</div>
</div>

</td>
</tr>
</table>
</div>


{include file="footer.tpl"}
